package com.jzy.bxb.core.handler;

import com.google.protobuf.Message;

/**
 * Tcp 处理器
 * 
 * @author JiangZhiYong
 * @mail 359135103@qq.com
 */
public abstract class TcpHandler extends AbsHandler {
	private Message message;

	@Override
	public Message getMessage() {
		return message;
	}
	
	/**
	 * 获取消息
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public <T extends Message> T  getMsg() {
		return (T)message;
	}


	@Override
	public void setMessage(Object message) {
		this.message = (Message) message;
	}

}
